package Demo08;

import java.time.LocalDateTime;
import java.util.Scanner;

public class While {
    public static void main(String[] args) {


    Scanner scanner = new Scanner(System.in);
    while (true) {
        System.out.println("请输入");
        String inof = scanner.nextLine();
        System.out.println(inof);
        if (inof.equalsIgnoreCase("n")) {
            break;
        } else {
            LocalDateTime now = LocalDateTime.now();
            System.out.println("循环操作中~~~ 按n退出循环");
        }
    }
    }
}